package com.kgcx.order.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

@Data
@Table(name = "t_order_log")
public class OrderLog {

    /**
     * 主键
     */
    @Id
    private Long kid;

    /**
     * 订单号
     */
    @Column(name = "order_no")
    private String orderNo;

    /**
     * 订单状态
     */
    @Column(name = "order_state")
    private Integer orderState;

    /**
     * 操作类型
     */
    @Column(name = "opt_type")
    private Integer optType;

    /**
     * 操作内容
     */
    @Column(name = "opt_content")
    private String optContent;

    /**
     * 备注
     */
    private String remark;

    /**
     * 操作IP
     */
    private String ip;

    /**
     * 记录创建者ID
     */
    @Column(name = "create_id")
    private Long createId;

    /**
     * 记录创建时间
     */
    @Column(name = "create_time")
    private Timestamp createTime;

    /**
     * 记录更新者ID
     */
    @Column(name = "update_id")
    private Long updateId;

    /**
     * 记录更新时间
     */
    @Column(name = "update_time")
    private Timestamp updateTime;

    /**
     * 记录状态，101-启用，102-禁用，103-删除
     */
    private Integer status;

}